package com.shrct.businessprocess.project.impl;

import com.shrct.businessprocess.project.RCSaleCommissionPayment;
import com.shrct.businessprocess.project.RCSaleCommissionPayment4InputSettlementYear;
import com.shrct.businessprocess.project.RCSaleCommissionPayment4InputSettlementYearDAO;
import com.shrct.businessprocess.project.RCSaleCommissionPayment4SettlementYear;
import com.shrct.businessprocess.project.impl.RCSaleCommissionPayment4InputSettlementYearImpl;
import edu.fudan.mylang.pf.BaseDAOService;
import java.util.Collection;
import org.eclipse.xtext.xbase.lib.ObjectExtensions;
import org.eclipse.xtext.xbase.lib.Procedures.Procedure1;
import org.springframework.stereotype.Service;

@Service("com.shrct.businessprocess.project.RCSaleCommissionPayment4InputSettlementYearDAO")
public class RCSaleCommissionPayment4InputSettlementYearDAOImpl extends BaseDAOService<RCSaleCommissionPayment4InputSettlementYear> implements RCSaleCommissionPayment4InputSettlementYearDAO {
  public RCSaleCommissionPayment4InputSettlementYear create(final RCSaleCommissionPayment payment, final Procedure1<? super RCSaleCommissionPayment4InputSettlementYear> init) {RCSaleCommissionPayment4InputSettlementYear rCSaleCommissionPayment4InputSettlementYear=RCSaleCommissionPayment4InputSettlementYearImpl.create(payment,getObjectFactory());
    final Procedure1<RCSaleCommissionPayment4InputSettlementYear> _function = new Procedure1<RCSaleCommissionPayment4InputSettlementYear>() {
        public void apply(final RCSaleCommissionPayment4InputSettlementYear it) {
          init.apply(it);
          Collection<RCSaleCommissionPayment4SettlementYear> _settlementYearPayments = payment.getSettlementYearPayments();
          _settlementYearPayments.add(it);
        }
      };
    RCSaleCommissionPayment4InputSettlementYear _doubleArrow = ObjectExtensions.<RCSaleCommissionPayment4InputSettlementYear>operator_doubleArrow(rCSaleCommissionPayment4InputSettlementYear, _function);
    return _doubleArrow;
  }
  
  public void delete(final RCSaleCommissionPayment4InputSettlementYear value) {getObjectFactory().delete(value);
    
  }
}
